using UnityEngine;
using System.Collections;
using System.Collections.Generic;

using OpenCVForUnity;

namespace Argar.OpenCV
{
    /// <summary>
    /// Pattern.
    /// </summary>
    public class Pattern
    {

        /// <summary>
        /// The size.
        /// </summary>
        public Size size;

        /// <summary>
        /// The frame.
        /// </summary>
        public Mat frame;

        /// <summary>
        /// The gray image.
        /// </summary>
        public Mat grayImg;

        /// <summary>
        /// The keypoints.
        /// </summary>
        public MatOfKeyPoint keypoints;

        /// <summary>
        /// The descriptors.
        /// </summary>
        public Mat descriptors;

        /// <summary>
        /// Initializes a new instance of the <see cref="Pattern"/> class.
        /// </summary>
        public Pattern()
        {
            size = new Size();
            frame = new Mat();
            grayImg = new Mat();
            keypoints = new MatOfKeyPoint();
            descriptors = new Mat();
        }

        public void Dispose()
        {
            frame.Dispose();
            grayImg.Dispose();
            keypoints.Dispose();
            descriptors.Dispose();
        }
    }
}


